package com.test.mooan.labama.activity_fragment_boom.base_boom;


import com.test.mooan.labama.bean_boom.star_dialog.ActiveWindowConfig_boom;
import com.test.mooan.labama.bean_boom.star_dialog.NormalWindowConfig_boom;
import com.test.mooan.labama.dialog_boom.star_dialog_boom.StarActiveDialog_boom;
import com.test.mooan.labama.dialog_boom.star_dialog_boom.StarNormalDialog_boom;
import com.test.mooan.labama.utils_boom.helper_boom.UserInfoHelper_boom;

public abstract class BaseLnActivity_boom extends BaseActivity_boom {

    public static boolean hasShowStarDalog = false;

    public void onStarWindowConfigResponse(){
        if (isClose()) return;
        //1.活动弹窗
        if (ActiveWindowConfig_boom.gInstance_boom().isSwitch_boom() &&
                UserInfoHelper_boom.gInstance().gActivedialogCount()< ActiveWindowConfig_boom.gInstance_boom().gNum_boom()){
            new StarActiveDialog_boom(this).show();
            hasShowStarDalog = true;
            return;
        }
        //2.评价弹窗
        if (NormalWindowConfig_boom.gInstance_boom().isSwitch_boom() &&
                UserInfoHelper_boom.gInstance().gNormaldialogCount()< NormalWindowConfig_boom.gInstance_boom().gNum_boom()){
            new StarNormalDialog_boom(this).show();
            hasShowStarDalog = true;
        }
    }

}
